﻿using System;
using System.Web.Mvc;
using Ymatou.CommonService;
using Ymatou.ServiceCenter.Domain;

namespace Ymatou.ServiceCenter.WebApi.Controllers
{
    public class WarmupController : Controller
    {
        // GET: Home
        public ActionResult Index()
        {
            try
            {
                string appId = "auth.ymatou.com";
                var list = RepositoryHub.ServiceMetadataRepository.GetServiceMetadatas(appId, null);

                ApplicationLog.Debug("点火 成功");

                return Content("ok");
            }
            catch (Exception ex)
            {
                ApplicationLog.Error(string.Format("点火 异常：{0}", ex.Message), ex);
                return Content(string.Format("string:{0}", ex.Message));
            }
        }
    }
}